package com.fz.mapper;

import com.fz.entity.Stu;
import com.fz.entity.Student;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by webrx on 2018-01-19.
 */
public interface StudentMapper {
    @Select("select * from student") @ResultMap("st")
    public List<Student> query();

    @Select("select name from student")
    public List<Stu> show();

}
